﻿using Hehq.Dtos;
using Hehq.Sys.Apps.Dict.Dtos.DictItemDtos.Forms;
using Hehq.Sys.Apps.Dict.Dtos.DictItemDtos;
using Hehq.Sys.Apps.Dict.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hehq.Sys.Apps.Dict;
using Hehq.Core.AppsImpl.Attributes;

namespace Hehq.Tenant.WebApi.Dict
{
    [PerModule(202, "租户双值字典管理")]
    public class DoubleAppService:AbsWebApp<IDoubleApp>, IWebApi
    {
        public List<DoubleDictItem> GetList(OneDictClassifyParam param)
        {
            var list = this.App.GetAllByCode<DoubleDictItem>(param);
            return list;
        }


        public MainKey<int> Create(DoubleDictItemCreateForm param)
        {
            return this.App.Create(param); 
        }

        public bool Remove(OneDictItemKeyPara param)
        {
            return this.App.Remove(param);
        }

        public bool Save(DoubleDictItemEditForm param)
        {

            return this.App.Save(param);
        }
    }

    public class DoubleDictItem: DoubleDictInfo
    {
         
    }
}
